package com.heng.a1_源码分析;

public class a2_ConfigurableApplicationContext {

    // 1. 刷新应用程序上下文
    //public void refresh() throws BeansException, IllegalStateException {
    //        synchronized(this.startupShutdownMonitor) {
    //            this.prepareRefresh();
    //            ConfigurableListableBeanFactory beanFactory = this.obtainFreshBeanFactory();
    //            this.prepareBeanFactory(beanFactory);
    //
    //            try {
    //                this.postProcessBeanFactory(beanFactory);
    //                this.invokeBeanFactoryPostProcessors(beanFactory);
    //                this.registerBeanPostProcessors(beanFactory);
    //                this.initMessageSource();
    //                this.initApplicationEventMulticaster();
    //                this.onRefresh();
    //                this.registerListeners();
    //                this.finishBeanFactoryInitialization(beanFactory);
    //                this.finishRefresh();
    //            } catch (BeansException var9) {
    //                if (this.logger.isWarnEnabled()) {
    //                    this.logger.warn("Exception encountered during context initialization - cancelling refresh attempt: " + var9);
    //                }
    //
    //                this.destroyBeans();
    //                this.cancelRefresh(var9);
    //                throw var9;
    //            } finally {
    //                this.resetCommonCaches();
    //            }
    //
    //        }
    //    }
}
